package com.cg.managesystem.mapper;

import com.cg.managesystem.entity.Repair;
import java.util.List;

public interface RepairMapper {
    int deleteByPrimaryKey(String id);

    int insert(Repair record);

    Repair selectByPrimaryKey(String id);

    List<Repair> selectAll();

    int updateByPrimaryKey(Repair record);

    //  根据订单id查询保修订单
    Repair selectByRepairId(String id);

    //  根据用户id查询保修订单
    Repair selectByUserId(Integer uid);

    //  根据维修工人查询报修订单
    List<Repair> selectByWorkerId(String worker);

    //  根据保修的开始时间查询保修订单
    List<Repair> selectByStarttime(String starttime);

}